package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ahy231
 * @date 2022/3/4 11:37
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("nft")
public class Nft {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("封面图片地址")
    private String img;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("描述/简介")
    private String description;
    @ApiModelProperty("细分类别")
    private String kind;
    @ApiModelProperty("属性：rap、流行")
    private String attribute;
    @ApiModelProperty("文件hash")
    private String fileHash;
    @ApiModelProperty("上传者/创作者id")
    private Long userId;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("所有权状态  1 待确认  2 未上架  3 一口价  4 商品拍卖  5售罄  6 违法")
    private Integer status;
    @ApiModelProperty("链上地址")
    private String chainAddress;
    @ApiModelProperty("所有者id")
    private Long ownerId;
    @ApiModelProperty("所有者用户名")
    private String ownerName;
    @ApiModelProperty("浏览量")
    private Integer views;
}
